<!--  -->
<template>
  <div class="lend">
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop=" name" label="项目名称" width="280" class="ists">
        <template slot-scope="scope">
          <i class="el-icon-s-fold"></i>
          <img
            src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
            alt=""
            style="width: 47px; height: 47px; display: inline-block"
          />
          <span style="margin-left: 10px">{{ scope.row.name }}</span>
        </template>
      </el-table-column>
      <el-table-column prop="type" label="土地类型" width="160">
        <template slot-scope="scope">
          <el-tag :type="scope.row.type === '工业用地' ? 'primary' : 'success'" disable-transitions>{{
            scope.row.type
          }}</el-tag>
        </template>
      </el-table-column>
      <el-table-column prop="date" label="发布时间" width="120"> </el-table-column>
      <el-table-column prop="address" label="是否展示">
        <template slot-scope="scope">
          <el-checkbox v-model="checked"></el-checkbox>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  components: {},
  data() {
    return {
      checked: true,
      tableData: [
        {
          date: '2021-09-10',
          name: '香港西路52号地块项目',
          type: '工业用地',
        },
        {
          date: '2021-09-10',
          name: '香港西路52号地块项目',
          type: '工业用地',
        },
        {
          date: '2021-09-10',
          name: '香港西路52号地块项目',
          type: '工业用地',
        },
        {
          date: '2021-09-10',
          name: '香港西路52号地块项目',
          type: '工业用地',
        },
      ],
    }
  },
  created() {},
  methods: {},
  beforeDestroy() {},
}
</script>

<style lang='scss' scoped>
.lend {
  width: 100%;
  height: auto;
  .el-table {
    .cell {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}
</style>
